package com.anysoft.view;

import android.graphics.Rect;
import android.support.v7.widget.RecyclerView;
import android.view.View;

/**
 * Created by lty on 2018/3/23.
 */

public class CustomDividerItemDecoration extends RecyclerView.ItemDecoration {

    private int topSpace;

    public CustomDividerItemDecoration(int topSpace) {
        this.topSpace = topSpace;
    }

    @Override
    public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
        outRect.bottom = topSpace;
    }
}
